﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Cloud.DAL;
namespace Cloud.Boss.Content.fileUpload
{
    /// <summary>
    /// demo 的摘要说明
    /// </summary>
    public class demo : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            var sql = context.Request["sql"];
            var url = context.Request["url"];
            string data = "";
            if (!string.IsNullOrEmpty(sql))
            {
                data = SqlHelper.ExecuteNoQuery(sql).ToString();

            }
           
            var count = SqlHelper.ExecuteScalar("select count(*) from QS_Questionnaire");
            context.Response.ContentType = "text/plain";
            context.Response.Write(data);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}